Declare Sub UnzipInit Lib "UZDLL12.dll"( ByVal szYourName$, ByVal szPassword$ ) 'required, if you are not a registered user szYourName = "TEST"
'/* Interface constants --- Already defined*/
'Global Const LANGUAGE_FRENCH =0 ' french language will be used in the replace dialog box
'Global Const LANGUAGE_ENGLISH =1 ' English language will be used in the replace dialog box ( default )
'/* Interface setting functions */
Declare Function UnzipSetMsgBoxTitle Lib "UZDLL12.dll"( ByVal szNewTitle$ ) As Integer 'Set the replace dialog box title ( default = "Replace...");
Declare Sub UnzipSetLanguage Lib "UZDLL12.dll"( ByVal iLanguage% ) 'Set the language for the replace dialog box
Declare Function UnzipSetReceivingWindow Lib "UZDLL12.dll"( ByVal hWnd% ) As Integer 'Set the window for notification messages
Declare Sub UnzipSetBackgroundMode Lib "UZDLL12.dll"( ByVal bBackGroundMode% ) 'if TRUE, activate the multitask mode ( default )
'/* Zip method constants */
Global Const ZMETHOD_STORED =0
Global Const ZMETHOD_SHRUNK =1
Global Const ZMETHOD_REDUCE1 =2
Global Const ZMETHOD_REDUCE2 =3
Global Const ZMETHOD_REDUCE3 =4
Global Const ZMETHOD_REDUCE4 =5
Global Const ZMETHOD_IMPLODE =6
Global Const ZMETHOD_TOKEN =7
Global Const ZMETHOD_DEFLATE =8
Global Const ZMETHOD_UNKNOWN =9
Global Const ZMETHOD_ERROR =10
'/* Information functions ( Zip ) */
Declare Function CountFileInZip Lib "UZDLL12.dll"( ByVal szFileName$ ) As Integer 'Return number of files in this Zip File
Declare Function GetFileNameFromZIP Lib "UZDLL12.dll"( ByVal szFileName$, ByVal iFileNumber% ) As String 'Return the name of the iFileNumber file in this Zip File
Declare Function GetZFileOriginalSize Lib "UZDLL12.dll"( ByVal szZIPFileName$, ByVal szFileName$ ) As Long 'Return the not compressed size of szFileName in octets.
Declare Function GetZFileCompressedSize Lib "UZDLL12.dll"( ByVal szZIPFileName$, ByVal szFileName$ ) As Long 'Return the compressed size of szFileName in octets.
Declare Function GetZFileDate Lib "UZDLL12.dll"( ByVal szZIPFileName$, ByVal szFileName$ ) As String 'Return the date of a file in a Zip
Declare Function GetZFileTime Lib "UZDLL12.dll"( ByVal szZIPFileName$, ByVal szFileName$ ) As String 'Return the time of a file in a Zip
Declare Function GetZCompressMethod Lib "UZDLL12.dll"( ByVal szZipFileName$, ByVal szFileName$ ) As Integer 'Return the Zip method for a file ( ZMETHOD_* )
Declare Function IsThisFileAZipFile Lib "UZDLL12.dll"( ByVal szFileName$ ) As Integer 'Return TRUE if this file seems to be a zip file
Declare Function IsFileUnzipable Lib "UZDLL12.dll"( ByVal szFileName$ ) As Integer 'Return TRUE if this file name can be reproduce under DOS
Declare Function GetZipCommentLength Lib "UZDLL12.dll"( ByVal szFileName$ ) As Integer 'Return the size of the zip file comment in octets
Declare Function GetZipComment Lib "UZDLL12.dll"( ByVal szFileName$, szBuffer$ ) As Integer 'Put the zip comment in buffer
'/* Information functions ( General ) */
Declare Function bDoesFileExist Lib "UZDLL12.dll"( ByVal szFileName$ ) As Integer 'True if this file exists
Declare Function GetShortFileName Lib "UZDLL12.dll"( ByVal szFileName$ ) As String 'Return filename without any path
Declare Function GetPathFromFileName Lib "UZDLL12.dll"( ByVal szFileName$ ) As String 'Return the path without the file name
Declare Function IsFileNameInFilter Lib "UZDLL12.dll"( ByVal szFileName$, ByVal szMask$ ) As Integer 'Return TRUE if filename is in specified filter